import request from '@/utils/request'
export default {
    //分页查询
    getPageList(page, limit, searchObj) {
        return request({
                url: '/admin/skill/list/'+page+'/'+limit,
                method: 'get',
                params: searchObj
        })
    },
    //删除Skill
    removeById(id) {
        return request({
            url: '/admin/skill/remove/'+id,
            method: 'delete'
        })
    },
    //新增Skill等级
    save(skill) {
        return request({
            url: '/admin/skill/save',
            method: 'post',
            data: skill
        })
    },
    //根据id查询Skill
    getById(id) {
        return request({
            url: '/admin/skill/'+id,
            method: 'get'
        })
    },
    //修改Skill
    updateById(skill) {
        return request({
            url: '/admin/skill/update',
            method: 'put',
            data: skill
        })
    }
}